import request from '@/services/baseService'

export default {
  //分页获取banner列表
  getShopIndexBannerListByPage: data => {
    return request(`/hzsx/shopIndex/banner/getShopIndexBannerListByPage`, data, 'post')
  },
  getIconData: data => {
    return request(`/hzsx/index/getIndexIconListByPage`, data, 'get')
  },
  //分页获取腰封列表
  getSealData: data => {
    return request(`/hzsx/shopIndex/loin/getShopIndexLoinBannerListByPage`, data, 'post')
  },
  getCubeData: data => {
    return request(`/hzsx/index/pageIndexWaterfallBanner`, data, 'get')
  },
  //新增banner
  addBanner: data => {
    return request(`/hzsx/shopIndex/banner/saveShopIndexBanner`, data)
  },
  //删除banner
  deleteBanner: data => {
    return request(`/hzsx/shopIndex/banner/delShopIndexBannerById`, data, 'get')
  },
  //新增腰封
  addSeal: data => {
    return request(`/hzsx/shopIndex/loin/saveIndexLoinBanner`, data)
  },
  //删除腰封
  deleteSeal: data => {
    return request(`/hzsx/shopIndex/loin/delIndexLoinBanner`, data, 'get')
  },
  addCube: data => {
    return request(`/hzsx/index/saveIndexWaterfallBanner`, data)
  },
  deleteCube: data => {
    return request(`/hzsx/index/deleteIndexWaterfallBanner`, data, 'get')
  },
  //修改banner
  updateBanner: data => {
    return request(`/hzsx/shopIndex/banner/updateShopIndexBannerById`, data)
  },
  //修改腰封
  updateSeal: data => {
    return request(`/hzsx/shopIndex/loin/updateIndexLoinBannerById`, data)
  },
  updateCube: data => {
    return request(`/hzsx/index/updateIndexWaterfallBanner`, data)
  }
}
